<template>
  <div class="vue-svg clearfix">
    <el-scrollbar style="height: 100%">
    <div class="main">
      <el-card class="box-card" shadow="hover">
        <div slot="header" class="clearfix">
          <span class="fs16">常用图形元素</span>
        </div>
        <div class="fs14 p10 lh20 text-left">
          <code>
            "rect": 长方形<br>
            "circle": 圆<br>
            "ellipse": 椭圆<br>
            "line": 线<br>
            "text": 文本<br>
            "path": 形状的通用元素
          </code>
        </div>
      </el-card>
      <el-card class="box-card" shadow="hover">
        <div slot="header" class="clearfix">
          <span class="fs16">svg元素样式</span>
        </div>
        <div class="fs14 p10 lh20 text-left">
          <code>
            "fill": 填充色<br>
            "stroke": 描边色<br>
            "stroke-width": 描边的宽度<br>
            "opacity": 透明度<br>
            "font-family": text 字体<br>
            "font-size":  text 字号
          </code>
        </div>
      </el-card>
    </div>
    </el-scrollbar>
  </div>
</template>

<script>
export default {
  name: 'VueSvg'
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss">
.vue-svg{
  margin: 0 auto;
  overflow: hidden;
  .main{
    column-count: 2;
    column-gap:10px;
    padding: 10px;
  }
  .el-card{
    margin: 10px 0;
  }
  .el-card__header{
    padding: 0 10px;
    text-align: left;
    font-size: 14px;
    line-height: 30px;
    line-height: 30px;
  }
}
</style>
